package com.jy.rhin.model.body.zhuanzhenjl;

import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import lombok.Getter;
import lombok.Setter;

/**
 * 诊断记录
 */
@Getter
@Setter
public class ZhenDuanJL {

    /**
     * 诊断名称
     */
    @XPath(path = "/component/observation/code[@code='DE05.01.025.00']/../value/text()")
    private String zhenDuanMC;

    /**
     * 诊断代码
     */
    @XPath(path = "/component/observation/code[@code='DE05.01.024.00'][@codeSystem='2.16.156.10011.2.2.1']/../value/@code",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE05_01_024_00))
    private String zhenDuanDM;
}
